package com.ZeroCarbon.service;

import com.ZeroCarbon.domain.po.UserFavorite;
import com.ZeroCarbon.exception.BusinessLogicException;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface IUserFavoriteService extends IService<UserFavorite> {
    /**
     * 收藏记录
     */
    void collectPost(String id) throws BusinessLogicException;

    /**
     * 取消收藏
     */
    void unCollect(String id) throws BusinessLogicException;

    /**
     * 获取用户收藏
     */
    List<String> collection() throws BusinessLogicException;
}
